<template>
	<PageLayout title="项目:嘿嘿——新增分组">
		<EditLayout @confirm="handlerConfirm">
			<view class="input-form-box">
				<up-form
					labelWidth="100"
					labelAlign="right"
					labelPosition="left"
					:model="groupData"
					placeholder="请填写项目名称"
					ref="form1"
				>       
				<up-form-item
							label="分组名称"
							prop="name"
							borderBottom
					>
						<up-input
								v-model="groupData.name"
								border="none"
						></up-input>
					</up-form-item>
					<up-form-item
							label="人数"
							prop="name"
							borderBottom
					>
						<up-input
								type="digit"
								v-model="groupData.num"
								border="none"
						></up-input>
					</up-form-item>
				</up-form>
			</view>
		</EditLayout>
	</PageLayout>

</template>

<script setup>
	import EditLayout from '../../../../components/myLayout/EditLayout.vue';
	import PageLayout from '../../../../components/myLayout/PageLayout.vue';
	import {ref} from "vue"
import { ProjectGroupAddReq } from '../../../../http/project';


	const groupData=ref({})

	const handlerConfirm=()=>{
		ProjectGroupAddReq(groupData.value).then(res=>{
			uni.redirectTo({
				url:"/pages/aaProject/setting/peopleGroup"
			})
		})
	}
	
</script>

<style>
	       
</style>
